package helexis.game.tyrian.domain;

/**
 * 게임 스테이지의 레벨
 * 
 * @author 조만희
 *
 */
public class Level {
	
	
	/**
	 * 레벨 ID
	 */
	private final int id;
	/**
	 * 레벨 이름
	 */
	private String name;
	/**
	 * 레벨 완료 여부
	 */
	private boolean completed;
	/**
	 * 다음 레벨
	 */
	private Level nextLevel;
	
	
	
	public Level(int id) {
		this.id = id;
	}//end constructor()


	
	public int getId() {
		return id;
	}
	
	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public boolean isCompleted() {
		return completed;
	}

	public void setCompleted(boolean completed) {
		this.completed = completed;
	}

	public Level getNextLevel() {
		return nextLevel;
	}

	public void setNextLevel(Level nextLevel) {
		this.nextLevel = nextLevel;
	}

	public boolean hasNextLevel() {
		return this.nextLevel != null;
	}//end of hasNextLevel()
	

}
//end of Level.java